<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('api/test/index', 'api.test/index');


/**
 * 普通发货
 */
Route::post('api/index/delivery', 'api.index/delivery');

/**
 * 尺寸 运输载具匹配
 */
//Route::get('index/size_vehicle','index/size_vehicle');

/**
 * 测试
 */
Route::get('index/test', 'index/test');

/**
 * 地址选择
 */
Route::post('api/index/select_address', 'api.index/select_address');

/**
 * 包装方式
 */
Route::post('api/index/package', 'api.index/package');

/**
 * 卸货方式
 */
Route::post('api/index/unload', 'api.index/unload');

/**
 * 配置货物
 */
Route::post('api/index/goods', 'api.index/goods');

/**
 * GLUZ货运期间服务相关协议
 */
Route::post('api/index/delivery_content', 'api.index/delivery_content');

/**
 * 路线呈现
 */
Route::post('api/index/route_present', 'api.index/route_present');

/**
 * 信息发布范围筛选
 */
Route::post('api/index/release_scope_search', 'api.index/release_scope_search');

/**
 * 发货尺寸
 */
Route::post('api/index/delivery_size', 'api.index/delivery_size');

/**
 * 发货载具
 */
Route::post('api/index/delivery_vehicle', 'api.index/delivery_vehicle');

/**
 * 发货载具 和 尺寸互选
 */
Route::post('api/index/size_vehicle', 'api.index/size_vehicle');

/**
 * 车皮列表
 */
Route::post('api/index/railway_wagon', 'api.index/railway_wagon');

/**
 * 发货记录
 */
Route::post('api/record/delivery_record', 'api.record/delivery_record');

/**
 * 报价记录
 */
Route::post('api/quotation/quotation_list', 'api.quotation/quotation_list');

/**
 * 取消发布
 */
Route::post('api/record/cancel_delivery', 'api.record/cancel_delivery');

/**
 * 确认报价 发货
 */
Route::post('api/record/send_delivery', 'api.record/send_delivery');

/**
 * 确认报价 发货
 */
Route::post('api/record/delivery_step', 'api.record/delivery_step');

/**
 * 提交 售后反馈
 */
Route::post('api/record/submit_after_sales', 'api.record/submit_after_sales');

/**
 * 售后类型 选择
 */
Route::post('api/record/after_sales_type_select', 'api.record/after_sales_type_select');

/**
 * 承接用户 选择
 */
Route::post('api/record/undertake_user', 'api.record/undertake_user');

/**
 * 处理情况 查看
 */
Route::post('api/record/handling_situation', 'api.record/handling_situation');

/**
 * 提交 处理情况
 */
Route::post('api/record/submit_Handle', 'api.record/submit_Handle');

/**
 * 处理类型 选择
 */
Route::post('api/record/handle_type_select', 'api.record/handle_type_select');


/**
 * 协商一致 完成售后
 */
Route::post('api/record/complete_after_sales', 'api.record/complete_after_sales');


/**
 * 服务评价
 */
Route::post('api/record/evaluate', 'api.record/evaluate');

/**
 * 货源信息
 */
Route::post('api/index/delivery_select', 'api.index/delivery_select');

/**
 * 运输车辆报价
 */
Route::post('api/quotation/transport_quotation', 'api.quotation/transport_quotation');

/**
 * 货代报价
 */
Route::post('api/quotation/freight_quotation', 'api.quotation/freight_quotation');

/**
 * 车辆选择
 */
Route::post('api/quotation/car_search', 'api.quotation/car_search');

/**
 * 车源信息
 */
Route::post('api/index/car_source', 'api.index/car_source');

/**
 * 车源类型筛选
 */
Route::post('api/index/car_brand_search', 'api.index/car_brand_search');

/**
 * 请求通关服务
 */
Route::post('api/index/request_clearance', 'api.index/request_clearance');

/**
 * 车辆 历史记录
 */
Route::post('api/index/history_list', 'api.index/history_list');
Route::post('api/index/insert_history', 'api.index/insert_history');


/**
 * 员工列表
 */
Route::post('api/basic/staff_lists', 'api.basic/staff_lists');

/**
 * 员工类型选择
 */
Route::post('api/basic/staff_type_select', 'api.basic/staff_type_select');

/**
 * 员工状态更新
 */
Route::post('api/basic/staff_state', 'api.basic/staff_state');

/**
 * 员工增加
 */
Route::post('api/basic/staff_add', 'api.basic/staff_add');

/**
 * 员工删除
 */
Route::post('api/basic/staff_del', 'api.basic/staff_del');

/**
 * 车辆列表
 */
Route::post('api/basic/transport_index', 'api.basic/transport_index');

/**
 * 车辆删除
 */
Route::post('api/basic/transport_del', 'api.basic/transport_del');

/**
 * 车辆更新
 */
Route::post('api/basic/transport_save', 'api.basic/transport_save');

/**
 * 司机查询
 */
Route::post('api/basic/driver_select', 'api.basic/driver_select');

/**
 * 更新车辆位置
 */
Route::post('api/basic/current_city_id', 'api.basic/current_city_id');

/**
 * 更新车辆状态
 */
Route::post('api/basic/current_car_status', 'api.basic/current_car_status');


/**
 * 仓库与货位
 */
Route::post('api/basic/warehouse_save', 'api.basic/warehouse_save');
Route::post('api/basic/warehouse_del', 'api.basic/warehouse_del');
Route::post('api/basic/warehouse_index', 'api.basic/warehouse_index');
Route::post('api/basic/storage', 'api.basic/storage');

Route::post('api/basic/storage_del', 'api.basic/storage_del');
Route::post('api/basic/storage_save', 'api.basic/storage_save');
Route::post('api/basic/storage_lists', 'api.basic/storage_lists');
Route::post('api/basic/stock_save', 'api.basic/stock_save');
Route::post('api/basic/goods', 'api.basic/goods');
Route::post('api/basic/stock_storage', 'api.basic/stock_storage');
Route::post('api/basic/stock_lists', 'api.basic/stock_lists');
Route::post('api/basic/stock_find', 'api.basic/stock_find');
Route::post('api/basic/stock_out', 'api.basic/stock_out');


/**
 * 货代订单
 */
Route::post('api/quotation/order', 'api.quotation/order');
Route::post('api/quotation/info', 'api.quotation/info');
Route::post('api/quotation/cancel_quotation', 'api.quotation/cancel_quotation');


/**
 * 关联订单
 */
Route::post('api/index/related_order', 'api.index/related_order');

/**
 * 发货详情
 */
Route::post('api/index/delivery_find', 'api.index/delivery_find');

/**
 * 确定收货
 */
Route::post('api/index/delivery_take', 'api.index/delivery_take');

/**
 * 邀请记录
 */
Route::post('api/index/request_record', 'api.index/request_record');

/**
 * 流程模板
 */
Route::post('api/index/process_template', 'api.index/process_template');


/**
 * 售后记录 是否存在平台介入
 */
Route::post('api/record/is_have_platform', 'api.record/is_have_platform');

/**
 * 司机工作台
 */
Route::post('api/basic/driver_work', 'api.basic/driver_work');

/**
 * 司机 解绑
 */
Route::post('api/basic/cancel_bind', 'api.basic/cancel_bind');

/**
 * 司机 绑定
 */
Route::post('api/basic/bind', 'api.basic/bind');
Route::post('api/basic/apply_bind', 'api.basic/apply_bind');

/**
 * 用户搜索接口
 */
Route::post('api/basic/search_user', 'api.basic/search_user');

/**
 * 被邀请绑定列表
 */
Route::post('api/basic/invite_bind', 'api.basic/invite_bind');
Route::post('api/basic/invite_status', 'api.basic/invite_status');
Route::post('api/basic/appeal_bind', 'api.basic/appeal_bind');

/**
 * 互相邀请
 */
Route::post('api/basic/invite_info', 'api.basic/invite_info');
Route::post('api/basic/agree_request', 'api.basic/agree_request');
Route::post('api/basic/jujue_request', 'api.basic/jujue_request');
Route::post('api/basic/jiebang_bind', 'api.basic/jiebang_bind');
Route::post('api/basic/shensu_bind', 'api.basic/shensu_bind');
Route::post('api/basic/submit_bind', 'api.basic/submit_bind');


/**
 * 名片
 */
Route::post('api/user/business_card', 'api.user/business_card');
Route::post('api/user/business_cards', 'api.user/business_cards');
Route::post('api/user/business_info', 'api.user/business_info');
Route::post('api/user/request_minute_score', 'api.user/request_minute_score');


/**
 * 城市选择
 */
Route::post('api/basic/search_city', 'api.basic/search_city');

/**
 * 评论列表
 */
Route::post('api/basic/comment_select', 'api.basic/comment_select');

/**
 * 分配运踪人员
 */
Route::post('api/record/delivery_task_divide', 'api.record/delivery_task_divide');
Route::post('api/record/delivery_task_user_select', 'api.record/delivery_task_user_select');

/**
 * 提交运踪
 */
Route::post('api/record/create_step', 'api.record/create_step');


/**
 * 我的同事
 */
Route::post('api/basic/my_colleague', 'api.basic/my_colleague');

/**
 * 身份变更
 */
Route::post('api/basic/identity_change', 'api.basic/identity_change');
Route::post('api/basic/identity_set', 'api.basic/identity_set');


/**
 * 我的任务
 */
Route::post('api/basic/my_task', 'api.basic/my_task');
Route::post('api/basic/cate', 'api.basic/cate');

/**
 * 我的发布
 */
Route::post('api/basic/my_release_state', 'api.basic/my_release_state');
Route::post('api/basic/search_caigou_user', 'api.basic/search_caigou_user');


/**
 * 多语言列表
 */
Route::post('api/state/index', 'api.state/index');
Route::post('api/state/add', 'api.state/add');
Route::post('api/state/info', 'api.state/info');
Route::post('api/state/update', 'api.state/update');
Route::post('api/state/del', 'api.state/del');
Route::post('api/state/request_minute', 'api.state/request_minute');
Route::post('api/state/guanzhu', 'api.state/guanzhu');
Route::post('api/state/pay_score', 'api.state/pay_score');
Route::post('api/state/message_board_info', 'api.state/message_board_info');
Route::post('api/state/score_select', 'api.state/score_select');
Route::post('api/state/staff', 'api.state/staff');
Route::get('api/state/score_select', 'api.state/score_select');


Route::post('api/state/cate_list', 'api.state/cate_list');
Route::post('api/state/state_work', 'api.state/state_work');
Route::post('api/state/state_find', 'api.state/state_find');
Route::post('api/state/state_save', 'api.state/state_save');

Route::get('api/notoken/getidentity', 'api.notoken/getidentity');
Route::post('api/Representative/createOrder', 'api.Representative/createOrder');
Route::get('api/Representative/getList', 'api.Representative/getList');
Route::post('api/Representative/pay', 'api.Representative/pay');
Route::post('api/Representative/settlement', 'api.Representative/settlement');
Route::post('api/Representative/service', 'api.Representative/service');
Route::post('api/Representative/score', 'api.Representative/score');
Route::get('api/Representative/getInfo', 'api.Representative/getInfo');
Route::post('api/Representative/belowOrder', 'api.Representative/belowOrder');
Route::post('api/Representative/appeal', 'api.Representative/appeal');
Route::post('api/Representative/notice', 'api.Representative/notice');
Route::post('api/Representative/noticeDel', 'api.Representative/noticeDel');


/**
 * 采购单列表相关
 */
Route::post('api/Purchaseorder/purchase_list', 'api.Purchaseorder/purchase_list');//我买的
Route::post('api/Purchaseorder/purchase_detaile', 'api.Purchaseorder/purchase_detaile');//我买的详情
Route::post('api/Purchaseorder/sell_list', 'api.Purchaseorder/sell_list');//我卖的
Route::post('api/Purchaseorder/sell_detaile', 'api.Purchaseorder/sell_detaile');//我卖的详情
Route::post('api/Purchaseorder/add_after_sales', 'api.Purchaseorder/add_after_sales');//申请售后

Route::post('api/Purchaseorder/seller_operate', 'api.Purchaseorder/seller_operate');//同意申请
Route::post('api/Purchaseorder/yuntrace_update', 'api.Purchaseorder/yuntrace_update');//关联运踪

Route::post('api/Purchaseorder/up_payment_voucher', 'api.Purchaseorder/up_payment_voucher');//上传付款凭证
Route::post('api/Purchaseorder/confirm_pay', 'api.Purchaseorder/confirm_pay');//同意付款
Route::post('api/Purchaseorder/up_shipping_fee', 'api.Purchaseorder/up_shipping_fee');//填报运费
Route::post('api/Purchaseorder/add_comment', 'api.Purchaseorder/add_comment');//添加评价

Route::post('api/Purchaseorder/after_sales_detail', 'api.Purchaseorder/after_sales_detail');//售后详情
Route::post('api/Purchaseorder/update_after_sales', 'api.Purchaseorder/update_after_sales');//修改售后



